//四种请求参数的解析
//id:,?name='fumei'

const Koa=require('koa');

const app=new Koa();
const log=console.log;
const bodyParser = require('koa-bodyparser');
const tasks=require('./task');



app.use(bodyParser({enableTypes:['json','text','form']}))
app.use(tasks.routes());

app.listen(8080);